package com.learning.javaweb_springboot_jwt.controller;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.learning.javaweb_springboot_jwt.entity.User;
import com.learning.javaweb_springboot_jwt.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
public class UserController {
    @Autowired
    UserService userService;

    // 单表查询，查询全部学生
    @GetMapping("/users")
    public List<User> queryAllUser() {
        return userService.queryAllUser();
    }




}
